﻿using System.Collections.Generic;
using Newtonsoft.Json;
using ZYing.LiquidThemeEngine.Locales;

namespace ZYing.LiquidThemeEngine.Config.Schemas;

public class ThemeSectionBlockSchema
{
    /// <summary>
    ///     The block type. This is a free-form string that you can use as an identifier. You can access this value through the
    ///     type attribute of the Liquid block object.
    /// </summary>
    [JsonProperty("type")]
    public string Type { get; set; }

    /// <summary>
    ///     The block name, which will show as the block title in the theme editor.
    /// </summary>
    [JsonProperty("name")]
    public ILocalizableText Name { get; set; }

    [JsonProperty("limit")] public int? Limit { get; set; }
    [JsonProperty("settings")] public List<ThemeSettingItemSchema> Settings { get; set; }
}